home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 599.swf / scripts / DefineButton2_197 / BUTTONCONDACTION on(release).as next >
Text File  |  2006-01-17  |  739b  |  42 lines

  1. on(release){
  2.    tellTarget("/sounds")
  3.    {
  4.       gotoAndStop("deal");
  5.       play();
  6.    }
  7.    if(risc)
  8.    {
  9.       firstTime = "1";
  10.       list = "";
  11.       listb = "01234";
  12.       descard = "";
  13.       credit += win;
  14.       tellTarget("/afis")
  15.       {
  16.          call("bet");
  17.       }
  18.       setProperty("/afis", _visible, "1");
  19.       if(win != "0")
  20.       {
  21.          tellTarget("/sounds")
  22.          {
  23.             gotoAndStop("cash");
  24.             play();
  25.          }
  26.       }
  27.       win = "0";
  28.    }
  29.    else if(end)
  30.    {
  31.       end = "0";
  32.       credit = "1000";
  33.    }
  34.    else if(help)
  35.    {
  36.       help = "0";
  37.       setProperty("/help", _visible, "0");
  38.       setProperty("/afis", _visible, "1");
  39.    }
  40.    call("deal");
  41. }
  42.